﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace RESP_IIWaterAssessment
{
    [System.Data.Linq.Mapping.DatabaseAttribute(Name = "master")]
    public partial class MasterContext : System.Data.Linq.DataContext
    {
        private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();

        partial void OnCreated();

        public MasterContext(string connection) :
            base(connection, mappingSource)
        {
            OnCreated();
        }

        public System.Data.Linq.Table<Databases> Accounts
        {
            get
            {
                return this.GetTable<Databases>();
            }
        }

    }

    [Table(Name = "sysdatabases")]
    public partial class Databases
    {
        private string _Name;

        [Column(Storage = "_Name", DbType = "NVarChar(128) NOT NULL", CanBeNull = false)]
        public string Name
        {
            get
            {
                return this._Name;
            }
            set
            {
                if ((this._Name != value))
                {
                    this._Name = value;
                }
            }
        }
    }

}
